﻿@model Hos.ScheduleMaster.Core.Models.ScheduleView

@{
    Layout = null;
}

<div class="well well-lg">
    <h4 class="block">@Model.Schedule.Title</h4>
    <div class="row">
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>是否周期运行：</strong>@Model.Schedule.RunLoop </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>cron模式：</strong>@Model.Schedule.CronExpression </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>开始时间：</strong>@Model.Schedule.StartDate </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>停止时间：</strong>@Model.Schedule.EndDate </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>程序集名称：</strong>@Model.Schedule.AssemblyName </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>执行类名称：</strong>@Model.Schedule.ClassName </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>备注：</strong>@Model.Schedule.Remark </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>创建时间：</strong>@Model.Schedule.CreateTime </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>创建人：</strong>@Model.Schedule.CreateUserName </p>
        <p class="col-lg-6 col-sm-6 col-xs-12"><strong>运行次数：</strong>@Model.Schedule.TotalRunCount </p>
    </div>
    <hr />
    <div class="row">
        <p class="col-lg-12 col-sm-12 col-xs-12">
            <strong>运行节点：</strong>
            @{
                foreach (var item in Model.Executors)
                {
                    <code>@item</code><i>&nbsp; </i>
                }
            }
        </p>
    </div>
    <hr />
    <div class="row">
        <p class="col-lg-12 col-sm-12 col-xs-12">
            <strong>自定义参数：</strong>
        </p>
        @if (Model.Params.Count > 0)
        {
            <table class="col-lg-12 col-sm-12 col-xs-12 table table-hover table-striped table-bordered table-condensed">
                <thead>
                    <tr> <th>参数名称</th> <th>参数值</th> <th>备注</th></tr>
                </thead>
                <tbody>
                    @{
                        foreach (var item in Model.Params)
                        {
                            <tr><td>@item.ParamKey</td><td>@item.ParamValue</td><td>@item.ParamRemark</td></tr>
                        }
                    }
                </tbody>
            </table>
        }
    </div>
    <hr />
    <div class="row">
        <p class="col-lg-12 col-sm-12 col-xs-12">
            <strong>监护人：</strong>
            @{
                foreach (var item in Model.Keepers)
                {
                    <code>@item.Value</code><i>&nbsp; </i>
                }
            }
        </p>
    </div>
    <hr />
    <div class="row">
        <p class="col-lg-12 col-sm-12 col-xs-12">
            <strong>后置任务：</strong>
            @{
                foreach (var item in Model.Children)
                {
                    <code>@item.Value</code><i>&nbsp; </i>
                }
            }
        </p>
    </div>
</div>

